package com.happycat.controller.home;


import com.happycat.base.R;
import com.happycat.mobile.model.CatTeamCategory;
import com.happycat.mobile.service.CatTeamCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liaoyong
 * @since 2020-08-01
 */
@RestController
@RequestMapping("/catTeamCategory")
//@Api(tags = "API-大神技能品类分组", description = "大神技能品类分组接口", hidden = true)
public class CatTeamCategoryController {
    @Autowired
	private CatTeamCategoryService catTeamCategoryService;
	
//	@ApiOperation(value = "组队分类详情")
//    @RequestMapping(method = RequestMethod.POST, value = "/detail")
//	public ResponseModel<CatTeamCategory> detail(@RequestBody CatTeamCategory catTeamCategory){
//		return catTeamCategoryService.selectOne(catTeamCategory);
//	}
	
	@GetMapping("/allList")
	@ApiOperation(value = "技能分组列表")
	public R<List<CatTeamCategory>> allList(){
		return R.success(catTeamCategoryService.list());
	}
	
//	@RequestMapping(method = RequestMethod.POST, value = "/add")
//	@ApiOperation(value = "组队分类新增")
//	public ResponseHeaderModel add(@RequestBody CatTeamCategory catTeamCategory){
//
//	   return catTeamCategoryService.add(catTeamCategory);
//	}
//	@ApiOperation(value = "组队分类编辑")
//	@RequestMapping(method = RequestMethod.POST, value = "/modify")
//	public ResponseHeaderModel modify(@RequestBody CatTeamCategory catTeamCategory){
//
//	   return catTeamCategoryService.modify(catTeamCategory);
//	}
	
}

